package team.epos.utils.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CheckIdUtil {

    public static boolean checkId(String id) {

        String regEx = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)";
        Pattern pattern = Pattern.compile(regEx);
        Matcher matcher = pattern.matcher(id);
        boolean rs = matcher.matches();
        return rs;
    }


}
